<%@ page contentType="text/html; charset=UTF-8" language="java" pageEncoding="utf-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<script type="text/javascript">
<!--
    function langSelecter_onChanged() {
        document.langForm.submit();
    }
     
//-->
</script>
 
<s:set name="SESSION_LOCALE" value="#session['WW_TRANS_I18N_LOCALE']"/>
<s:bean id="locales" name="com.prp.struts.bean.Locales">
	<s:param name="en" value="%{getText('_prEnglish')}"/>
	<s:param name="zh" value="%{getText('_prChinese')}"/>
</s:bean>

<form method="GET" action="index.action" name="langForm">
    <s:text name="_prLanguage"/>: <s:select label="Language" 
        list="#locales.locales" listKey="value" listValue="key"
        value="#SESSION_LOCALE == null ? locale : #SESSION_LOCALE"
        name="request_locale" id="langSelecter" 
        onchange="langSelecter_onChanged()"/>
</form>

